HTML5 LocalStorage: Checking if a key exists [duplicate]

58

HTML5 LocalStorage: Checking if a key exists [duplicate] -

if (localStorage.getItem("username") === null) {
  //...
}

Comments

Submit
0 Comments